package com.ruihu.admin.module.business.tasknode.domain.dto;

import com.ruihu.admin.util.VerificationUtil;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 新建 [ 任务环节 ]
 *
 * @author Tony
 * @version 1.0
 * @company 瑞虎（南京）信息技术有限公司
 * @copyright (c) 2018 瑞虎（南京）信息技术有限公司Inc. All rights reserved.
 * @date  2022-08-30 17:07:35
 * @since JDK1.8
 */
@Data
public class TaskNodeAddDTO {

    @ApiModelProperty("节点名称")
    @NotNull(message = "请输入正确的节点名称(1-50个字符)")
    @Length(min = 1, max = 50, message = "请输入正确的节点名称(1-50个字符)")
    private String nodeName;

    @ApiModelProperty("节点描述")
    @Length(max = 200, message = "描述最多200个字符")
    private String nodeDesc;

    @ApiModelProperty("序号")
    @NotNull(message = "序号不能为空")
    @Min(1)
    private Integer sortNo;

}
